Closed Bug 711355 Opened 13 years ago Closed 13 years ago

memory management errors in nsCoreAnimationSupport.mm

Categories

(Core :: Graphics, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla12

People

(Reporter: jfkthame, Assigned: jfkthame)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Potential leaks noted in the static analysis reports: http://people.mozilla.org/~gszorc/clang/2011-12-15-13/report-74UjgP.html#EndPath http://people.mozilla.org/~gszorc/clang/2011-12-15-13/report-7ompG0.html#EndPath http://people.mozilla.org/~gszorc/clang/2011-12-15-13/report-dhueRI.html#EndPath http://people.mozilla.org/~gszorc/clang/2011-12-15-13/report-eKkcGp.html#EndPath http://people.mozilla.org/~gszorc/clang/2011-12-15-13/report-WQpx10.html#EndPath Most of these are in a DEBUG-only diagnostic function, so wouldn't affect normal users, but we should still tidy them up. I've also removed a couple of redundant NULL-checks that I noticed in passing - the CG*Release APIs are documented as NULL-safe.
Attachment #582212 - Flags: review?(bgirard)
Comment on attachment 582212 [details] [diff] [review] fix potential leaks found by static analysis Sorry I missed the review email and saw this today! These are all good changes. I'm not a fan of removing the null check before release even if the API allows it because it will cause others to wonder and have to check the documentation.
Attachment #582212 - Flags: review?(bgirard) → review+
(In reply to Benoit Girard (:BenWa) from comment #1) > I'm not a fan of removing the null check before release even if the > API allows it because it will cause others to wonder and have to check the > documentation. OK, I removed these two extra chunks from the patch prior to pushing it. https://hg.mozilla.org/integration/mozilla-inbound/rev/d58132b4ecc4
Target Milestone: --- → mozilla12
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: